import request from '@/utils/request'

// 查询画像组件列表
export function listPortraitCompents(query) {
  return request({
    url: '/tag/portraitCompents/list',
    method: 'get',
    params: query
  })
}

// 查询画像组件详细
export function getPortraitCompents(portraitId) {
  return request({
    url: '/tag/portraitCompents/' + portraitId,
    method: 'get'
  })
}

// 新增画像组件
export function addPortraitCompents(data) {
  return request({
    url: '/tag/portraitCompents',
    method: 'post',
    data: data
  })
}

// 修改画像组件
export function updatePortraitCompents(data) {
  return request({
    url: '/tag/portraitCompents',
    method: 'put',
    data: data
  })
}

// 删除画像组件
export function delPortraitCompents(portraitId) {
  return request({
    url: '/tag/portraitCompents/' + portraitId,
    method: 'delete'
  })
}

// 导出画像组件
export function exportPortraitCompents(query) {
  return request({
    url: '/tag/portraitCompents/export',
    method: 'get',
    params: query
  })
}